﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adadd.aspx.cs" Inherits="UI.system.page.ad.adadd" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="Common" %>
<div style="margin: 15px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label"><font>名称</font><em>*</em></label>
			<div class="layui-input-block">
                <input type="text" name="name" placeholder="请输入名称" lay-verify="required" autocomplete="off" class="layui-input" value="<%=info.Name %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label">图片</label>
			<div class="layui-input-inline">
				<div id="upload_products1" class='upload_product <%=string.IsNullOrEmpty(info.Img)?"":"hidden" %>'><div id="upload_img"></div></div>
                 <div id="upload_show1" class='upload_show <%=string.IsNullOrEmpty(info.Img)?"hidden":"" %>'>
                     <div id="img_container1" class="img_container" src="<%=info.Img %>"><img src="<%=info.Img %>"/></div>
                     <div class="reupload"><a href="javascript:Re_Upload1()">重传</a></div>
                 </div> <div style="float:left; color:red; padding-top:5px; font-size:12px; padding-left:10px;"></div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><font>链接</font></label>
			<div class="layui-input-block">
				<input type="text" name="link" placeholder="请输入链接" autocomplete="off" class="layui-input" value="<%=info.Link %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>位置</font><em>*</em></label>
			<div class="layui-input-block">
				<select id="position" name="position" lay-verify="required" lay-filter="sendtype">
                        <%foreach (int key in Commons.Position.Keys)
                          {
                              if (key > 0)
                              {
                              %>
                        
					    <option value="<%=key %>" <%=info.Position==key?"selected":"" %>><%=Commons.Position[key]%></option>
					    <%}} %>
				</select>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>开始时间</font><em>*</em></label>
			<div class="layui-input-block">
				<input type="text" name="begindate" placeholder="请选择开始时间" lay-verify="required" onclick="layui.laydate({elem: this, istime:true, format: 'YYYY-MM-DD hh:mm'})" autocomplete="off" class="layui-input" value='<%=info.BeginDate.ToString("yyyy-MM-dd HH:mm") %>'>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>结束时间</font><em>*</em></label>
			<div class="layui-input-block">
				<input type="text" name="enddate" placeholder="请选择结束时间" lay-verify="required" onclick="layui.laydate({elem: this,istime:true, format: 'YYYY-MM-DD hh:mm'})" autocomplete="off" class="layui-input" value='<%=info.EndDate.ToString("yyyy-MM-dd HH:mm") %>'>
			</div>
		</div>
		<a lay-filter="save" lay-submit style="display: none;"></a>
	</form>
</div>